Travel Suitability API

Built with FastAPI, asynchronous HTTP requests, and scored weather recommendations | November 2025

Author: Andrew Castro


This project is a REST API built with FastAPI and Python that returns travel suitability recommendations for user-supplied cities. It resolves ambiguous locations by combining city input with optional country and state filters, then fetches live geocoding and forecast data from Open-Meteo to generate a normalized trip score and verdict.

The service uses Pydantic models for typed response contracts, asynchronous external requests for responsive API behavior, and production-style deployment settings such as CORS configuration and cloud hosting on Render.

Project Summary

Tech Stack & Methodology


Key Engineering Challenges Solved:

Live API Playground

Interact with the live API below. The form sends a request to the hosted FastAPI backend, which resolves the destination, fetches current forecast inputs from Open-Meteo, calculates a recommendation score, and returns a structured result.

The API is hosted on Render's free tier, so the first request may take a few moments to wake up.

Test the API


Results will appear here...

Conclusion

This project demonstrates backend-focused software engineering through API design, external service integration, typed response modeling, and deployment to a live cloud environment. By separating the recommendation logic into a standalone REST service, the application can support web clients and other frontend consumers without coupling business logic to the interface layer. It highlights maintainable Python development, practical API error handling, and real-world integration with third-party data providers.

Project Repo